<?php


abstract class BaseGeoName extends BaseObject  implements Persistent {


	
	protected static $peer;


	
	protected $geo_name_id;


	
	protected $status_id = 1;


	
	protected $priority;


	
	protected $name;


	
	protected $ascii_name;


	
	protected $alternate_names;


	
	protected $latitude = 0;


	
	protected $longitude = 0;


	
	protected $feature_class;


	
	protected $feature_code;


	
	protected $country_code;


	
	protected $cc2;


	
	protected $admin1_code;


	
	protected $admin2_code;


	
	protected $admin3_code;


	
	protected $admin4_code;


	
	protected $population = 0;


	
	protected $elevation;


	
	protected $gtopo30;


	
	protected $timezone;


	
	protected $updated_at;

	
	protected $alreadyInSave = false;

	
	protected $alreadyInValidation = false;

	
	public function getGeoNameId()
	{

		return $this->geo_name_id;
	}

	
	public function getStatusId()
	{

		return $this->status_id;
	}

	
	public function getPriority()
	{

		return $this->priority;
	}

	
	public function getName()
	{

		return $this->name;
	}

	
	public function getAsciiName()
	{

		return $this->ascii_name;
	}

	
	public function getAlternateNames()
	{

		return $this->alternate_names;
	}

	
	public function getLatitude()
	{

		return $this->latitude;
	}

	
	public function getLongitude()
	{

		return $this->longitude;
	}

	
	public function getFeatureClass()
	{

		return $this->feature_class;
	}

	
	public function getFeatureCode()
	{

		return $this->feature_code;
	}

	
	public function getCountryCode()
	{

		return $this->country_code;
	}

	
	public function getCc2()
	{

		return $this->cc2;
	}

	
	public function getAdmin1Code()
	{

		return $this->admin1_code;
	}

	
	public function getAdmin2Code()
	{

		return $this->admin2_code;
	}

	
	public function getAdmin3Code()
	{

		return $this->admin3_code;
	}

	
	public function getAdmin4Code()
	{

		return $this->admin4_code;
	}

	
	public function getPopulation()
	{

		return $this->population;
	}

	
	public function getElevation()
	{

		return $this->elevation;
	}

	
	public function getGtopo30()
	{

		return $this->gtopo30;
	}

	
	public function getTimezone()
	{

		return $this->timezone;
	}

	
	public function getUpdatedAt($format = 'Y-m-d H:i:s')
	{

		if ($this->updated_at === null || $this->updated_at === '') {
			return null;
		} elseif (!is_int($this->updated_at)) {
						$ts = strtotime($this->updated_at);
			if ($ts === -1 || $ts === false) { 				throw new PropelException("Unable to parse value of [updated_at] as date/time value: " . var_export($this->updated_at, true));
			}
		} else {
			$ts = $this->updated_at;
		}
		if ($format === null) {
			return $ts;
		} elseif (strpos($format, '%') !== false) {
			return strftime($format, $ts);
		} else {
			return date($format, $ts);
		}
	}

	
	public function setGeoNameId($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->geo_name_id !== $v) {
			$this->geo_name_id = $v;
			$this->modifiedColumns[] = GeoNamePeer::GEO_NAME_ID;
		}

	} 
	
	public function setStatusId($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->status_id !== $v || $v === 1) {
			$this->status_id = $v;
			$this->modifiedColumns[] = GeoNamePeer::STATUS_ID;
		}

	} 
	
	public function setPriority($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->priority !== $v) {
			$this->priority = $v;
			$this->modifiedColumns[] = GeoNamePeer::PRIORITY;
		}

	} 
	
	public function setName($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->name !== $v) {
			$this->name = $v;
			$this->modifiedColumns[] = GeoNamePeer::NAME;
		}

	} 
	
	public function setAsciiName($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->ascii_name !== $v) {
			$this->ascii_name = $v;
			$this->modifiedColumns[] = GeoNamePeer::ASCII_NAME;
		}

	} 
	
	public function setAlternateNames($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->alternate_names !== $v) {
			$this->alternate_names = $v;
			$this->modifiedColumns[] = GeoNamePeer::ALTERNATE_NAMES;
		}

	} 
	
	public function setLatitude($v)
	{

		if ($this->latitude !== $v || $v === 0) {
			$this->latitude = $v;
			$this->modifiedColumns[] = GeoNamePeer::LATITUDE;
		}

	} 
	
	public function setLongitude($v)
	{

		if ($this->longitude !== $v || $v === 0) {
			$this->longitude = $v;
			$this->modifiedColumns[] = GeoNamePeer::LONGITUDE;
		}

	} 
	
	public function setFeatureClass($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->feature_class !== $v) {
			$this->feature_class = $v;
			$this->modifiedColumns[] = GeoNamePeer::FEATURE_CLASS;
		}

	} 
	
	public function setFeatureCode($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->feature_code !== $v) {
			$this->feature_code = $v;
			$this->modifiedColumns[] = GeoNamePeer::FEATURE_CODE;
		}

	} 
	
	public function setCountryCode($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->country_code !== $v) {
			$this->country_code = $v;
			$this->modifiedColumns[] = GeoNamePeer::COUNTRY_CODE;
		}

	} 
	
	public function setCc2($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->cc2 !== $v) {
			$this->cc2 = $v;
			$this->modifiedColumns[] = GeoNamePeer::CC2;
		}

	} 
	
	public function setAdmin1Code($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->admin1_code !== $v) {
			$this->admin1_code = $v;
			$this->modifiedColumns[] = GeoNamePeer::ADMIN1_CODE;
		}

	} 
	
	public function setAdmin2Code($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->admin2_code !== $v) {
			$this->admin2_code = $v;
			$this->modifiedColumns[] = GeoNamePeer::ADMIN2_CODE;
		}

	} 
	
	public function setAdmin3Code($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->admin3_code !== $v) {
			$this->admin3_code = $v;
			$this->modifiedColumns[] = GeoNamePeer::ADMIN3_CODE;
		}

	} 
	
	public function setAdmin4Code($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->admin4_code !== $v) {
			$this->admin4_code = $v;
			$this->modifiedColumns[] = GeoNamePeer::ADMIN4_CODE;
		}

	} 
	
	public function setPopulation($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->population !== $v || $v === 0) {
			$this->population = $v;
			$this->modifiedColumns[] = GeoNamePeer::POPULATION;
		}

	} 
	
	public function setElevation($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->elevation !== $v) {
			$this->elevation = $v;
			$this->modifiedColumns[] = GeoNamePeer::ELEVATION;
		}

	} 
	
	public function setGtopo30($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->gtopo30 !== $v) {
			$this->gtopo30 = $v;
			$this->modifiedColumns[] = GeoNamePeer::GTOPO30;
		}

	} 
	
	public function setTimezone($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->timezone !== $v) {
			$this->timezone = $v;
			$this->modifiedColumns[] = GeoNamePeer::TIMEZONE;
		}

	} 
	
	public function setUpdatedAt($v)
	{

		if ($v !== null && !is_int($v)) {
			$ts = strtotime($v);
			if ($ts === -1 || $ts === false) { 				throw new PropelException("Unable to parse date/time value for [updated_at] from input: " . var_export($v, true));
			}
		} else {
			$ts = $v;
		}
		if ($this->updated_at !== $ts) {
			$this->updated_at = $ts;
			$this->modifiedColumns[] = GeoNamePeer::UPDATED_AT;
		}

	} 
	
	public function hydrate(ResultSet $rs, $startcol = 1)
	{
		try {

			$this->geo_name_id = $rs->getInt($startcol + 0);

			$this->status_id = $rs->getInt($startcol + 1);

			$this->priority = $rs->getInt($startcol + 2);

			$this->name = $rs->getString($startcol + 3);

			$this->ascii_name = $rs->getString($startcol + 4);

			$this->alternate_names = $rs->getString($startcol + 5);

			$this->latitude = $rs->getFloat($startcol + 6);

			$this->longitude = $rs->getFloat($startcol + 7);

			$this->feature_class = $rs->getString($startcol + 8);

			$this->feature_code = $rs->getString($startcol + 9);

			$this->country_code = $rs->getString($startcol + 10);

			$this->cc2 = $rs->getString($startcol + 11);

			$this->admin1_code = $rs->getString($startcol + 12);

			$this->admin2_code = $rs->getString($startcol + 13);

			$this->admin3_code = $rs->getString($startcol + 14);

			$this->admin4_code = $rs->getString($startcol + 15);

			$this->population = $rs->getInt($startcol + 16);

			$this->elevation = $rs->getInt($startcol + 17);

			$this->gtopo30 = $rs->getInt($startcol + 18);

			$this->timezone = $rs->getString($startcol + 19);

			$this->updated_at = $rs->getTimestamp($startcol + 20, null);

			$this->resetModified();

			$this->setNew(false);

						return $startcol + 21; 
		} catch (Exception $e) {
			throw new PropelException("Error populating GeoName object", $e);
		}
	}

	
	public function delete($con = null)
	{
		if ($this->isDeleted()) {
			throw new PropelException("This object has already been deleted.");
		}

		if ($con === null) {
			$con = Propel::getConnection(GeoNamePeer::DATABASE_NAME);
		}

		try {
			$con->begin();
			GeoNamePeer::doDelete($this, $con);
			$this->setDeleted(true);
			$con->commit();
		} catch (PropelException $e) {
			$con->rollback();
			throw $e;
		}
	}

	
	public function save($con = null)
	{
    if ($this->isModified() && !$this->isColumnModified(GeoNamePeer::UPDATED_AT))
    {
      $this->setUpdatedAt(time());
    }

		if ($this->isDeleted()) {
			throw new PropelException("You cannot save an object that has been deleted.");
		}

		if ($con === null) {
			$con = Propel::getConnection(GeoNamePeer::DATABASE_NAME);
		}

		try {
			$con->begin();
			$affectedRows = $this->doSave($con);
			$con->commit();
			return $affectedRows;
		} catch (PropelException $e) {
			$con->rollback();
			throw $e;
		}
	}

	
	protected function doSave($con)
	{
		$affectedRows = 0; 		if (!$this->alreadyInSave) {
			$this->alreadyInSave = true;


						if ($this->isModified()) {
				if ($this->isNew()) {
					$pk = GeoNamePeer::doInsert($this, $con);
					$affectedRows += 1; 										 										 
					$this->setGeoNameId($pk);  
					$this->setNew(false);
				} else {
					$affectedRows += GeoNamePeer::doUpdate($this, $con);
				}
				$this->resetModified(); 			}

			$this->alreadyInSave = false;
		}
		return $affectedRows;
	} 
	
	protected $validationFailures = array();

	
	public function getValidationFailures()
	{
		return $this->validationFailures;
	}

	
	public function validate($columns = null)
	{
		$res = $this->doValidate($columns);
		if ($res === true) {
			$this->validationFailures = array();
			return true;
		} else {
			$this->validationFailures = $res;
			return false;
		}
	}

	
	protected function doValidate($columns = null)
	{
		if (!$this->alreadyInValidation) {
			$this->alreadyInValidation = true;
			$retval = null;

			$failureMap = array();


			if (($retval = GeoNamePeer::doValidate($this, $columns)) !== true) {
				$failureMap = array_merge($failureMap, $retval);
			}



			$this->alreadyInValidation = false;
		}

		return (!empty($failureMap) ? $failureMap : true);
	}

	
	public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
	{
		$pos = GeoNamePeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
		return $this->getByPosition($pos);
	}

	
	public function getByPosition($pos)
	{
		switch($pos) {
			case 0:
				return $this->getGeoNameId();
				break;
			case 1:
				return $this->getStatusId();
				break;
			case 2:
				return $this->getPriority();
				break;
			case 3:
				return $this->getName();
				break;
			case 4:
				return $this->getAsciiName();
				break;
			case 5:
				return $this->getAlternateNames();
				break;
			case 6:
				return $this->getLatitude();
				break;
			case 7:
				return $this->getLongitude();
				break;
			case 8:
				return $this->getFeatureClass();
				break;
			case 9:
				return $this->getFeatureCode();
				break;
			case 10:
				return $this->getCountryCode();
				break;
			case 11:
				return $this->getCc2();
				break;
			case 12:
				return $this->getAdmin1Code();
				break;
			case 13:
				return $this->getAdmin2Code();
				break;
			case 14:
				return $this->getAdmin3Code();
				break;
			case 15:
				return $this->getAdmin4Code();
				break;
			case 16:
				return $this->getPopulation();
				break;
			case 17:
				return $this->getElevation();
				break;
			case 18:
				return $this->getGtopo30();
				break;
			case 19:
				return $this->getTimezone();
				break;
			case 20:
				return $this->getUpdatedAt();
				break;
			default:
				return null;
				break;
		} 	}

	
	public function toArray($keyType = BasePeer::TYPE_PHPNAME)
	{
		$keys = GeoNamePeer::getFieldNames($keyType);
		$result = array(
			$keys[0] => $this->getGeoNameId(),
			$keys[1] => $this->getStatusId(),
			$keys[2] => $this->getPriority(),
			$keys[3] => $this->getName(),
			$keys[4] => $this->getAsciiName(),
			$keys[5] => $this->getAlternateNames(),
			$keys[6] => $this->getLatitude(),
			$keys[7] => $this->getLongitude(),
			$keys[8] => $this->getFeatureClass(),
			$keys[9] => $this->getFeatureCode(),
			$keys[10] => $this->getCountryCode(),
			$keys[11] => $this->getCc2(),
			$keys[12] => $this->getAdmin1Code(),
			$keys[13] => $this->getAdmin2Code(),
			$keys[14] => $this->getAdmin3Code(),
			$keys[15] => $this->getAdmin4Code(),
			$keys[16] => $this->getPopulation(),
			$keys[17] => $this->getElevation(),
			$keys[18] => $this->getGtopo30(),
			$keys[19] => $this->getTimezone(),
			$keys[20] => $this->getUpdatedAt(),
		);
		return $result;
	}

	
	public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)
	{
		$pos = GeoNamePeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
		return $this->setByPosition($pos, $value);
	}

	
	public function setByPosition($pos, $value)
	{
		switch($pos) {
			case 0:
				$this->setGeoNameId($value);
				break;
			case 1:
				$this->setStatusId($value);
				break;
			case 2:
				$this->setPriority($value);
				break;
			case 3:
				$this->setName($value);
				break;
			case 4:
				$this->setAsciiName($value);
				break;
			case 5:
				$this->setAlternateNames($value);
				break;
			case 6:
				$this->setLatitude($value);
				break;
			case 7:
				$this->setLongitude($value);
				break;
			case 8:
				$this->setFeatureClass($value);
				break;
			case 9:
				$this->setFeatureCode($value);
				break;
			case 10:
				$this->setCountryCode($value);
				break;
			case 11:
				$this->setCc2($value);
				break;
			case 12:
				$this->setAdmin1Code($value);
				break;
			case 13:
				$this->setAdmin2Code($value);
				break;
			case 14:
				$this->setAdmin3Code($value);
				break;
			case 15:
				$this->setAdmin4Code($value);
				break;
			case 16:
				$this->setPopulation($value);
				break;
			case 17:
				$this->setElevation($value);
				break;
			case 18:
				$this->setGtopo30($value);
				break;
			case 19:
				$this->setTimezone($value);
				break;
			case 20:
				$this->setUpdatedAt($value);
				break;
		} 	}

	
	public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)
	{
		$keys = GeoNamePeer::getFieldNames($keyType);

		if (array_key_exists($keys[0], $arr)) $this->setGeoNameId($arr[$keys[0]]);
		if (array_key_exists($keys[1], $arr)) $this->setStatusId($arr[$keys[1]]);
		if (array_key_exists($keys[2], $arr)) $this->setPriority($arr[$keys[2]]);
		if (array_key_exists($keys[3], $arr)) $this->setName($arr[$keys[3]]);
		if (array_key_exists($keys[4], $arr)) $this->setAsciiName($arr[$keys[4]]);
		if (array_key_exists($keys[5], $arr)) $this->setAlternateNames($arr[$keys[5]]);
		if (array_key_exists($keys[6], $arr)) $this->setLatitude($arr[$keys[6]]);
		if (array_key_exists($keys[7], $arr)) $this->setLongitude($arr[$keys[7]]);
		if (array_key_exists($keys[8], $arr)) $this->setFeatureClass($arr[$keys[8]]);
		if (array_key_exists($keys[9], $arr)) $this->setFeatureCode($arr[$keys[9]]);
		if (array_key_exists($keys[10], $arr)) $this->setCountryCode($arr[$keys[10]]);
		if (array_key_exists($keys[11], $arr)) $this->setCc2($arr[$keys[11]]);
		if (array_key_exists($keys[12], $arr)) $this->setAdmin1Code($arr[$keys[12]]);
		if (array_key_exists($keys[13], $arr)) $this->setAdmin2Code($arr[$keys[13]]);
		if (array_key_exists($keys[14], $arr)) $this->setAdmin3Code($arr[$keys[14]]);
		if (array_key_exists($keys[15], $arr)) $this->setAdmin4Code($arr[$keys[15]]);
		if (array_key_exists($keys[16], $arr)) $this->setPopulation($arr[$keys[16]]);
		if (array_key_exists($keys[17], $arr)) $this->setElevation($arr[$keys[17]]);
		if (array_key_exists($keys[18], $arr)) $this->setGtopo30($arr[$keys[18]]);
		if (array_key_exists($keys[19], $arr)) $this->setTimezone($arr[$keys[19]]);
		if (array_key_exists($keys[20], $arr)) $this->setUpdatedAt($arr[$keys[20]]);
	}

	
	public function buildCriteria()
	{
		$criteria = new Criteria(GeoNamePeer::DATABASE_NAME);

		if ($this->isColumnModified(GeoNamePeer::GEO_NAME_ID)) $criteria->add(GeoNamePeer::GEO_NAME_ID, $this->geo_name_id);
		if ($this->isColumnModified(GeoNamePeer::STATUS_ID)) $criteria->add(GeoNamePeer::STATUS_ID, $this->status_id);
		if ($this->isColumnModified(GeoNamePeer::PRIORITY)) $criteria->add(GeoNamePeer::PRIORITY, $this->priority);
		if ($this->isColumnModified(GeoNamePeer::NAME)) $criteria->add(GeoNamePeer::NAME, $this->name);
		if ($this->isColumnModified(GeoNamePeer::ASCII_NAME)) $criteria->add(GeoNamePeer::ASCII_NAME, $this->ascii_name);
		if ($this->isColumnModified(GeoNamePeer::ALTERNATE_NAMES)) $criteria->add(GeoNamePeer::ALTERNATE_NAMES, $this->alternate_names);
		if ($this->isColumnModified(GeoNamePeer::LATITUDE)) $criteria->add(GeoNamePeer::LATITUDE, $this->latitude);
		if ($this->isColumnModified(GeoNamePeer::LONGITUDE)) $criteria->add(GeoNamePeer::LONGITUDE, $this->longitude);
		if ($this->isColumnModified(GeoNamePeer::FEATURE_CLASS)) $criteria->add(GeoNamePeer::FEATURE_CLASS, $this->feature_class);
		if ($this->isColumnModified(GeoNamePeer::FEATURE_CODE)) $criteria->add(GeoNamePeer::FEATURE_CODE, $this->feature_code);
		if ($this->isColumnModified(GeoNamePeer::COUNTRY_CODE)) $criteria->add(GeoNamePeer::COUNTRY_CODE, $this->country_code);
		if ($this->isColumnModified(GeoNamePeer::CC2)) $criteria->add(GeoNamePeer::CC2, $this->cc2);
		if ($this->isColumnModified(GeoNamePeer::ADMIN1_CODE)) $criteria->add(GeoNamePeer::ADMIN1_CODE, $this->admin1_code);
		if ($this->isColumnModified(GeoNamePeer::ADMIN2_CODE)) $criteria->add(GeoNamePeer::ADMIN2_CODE, $this->admin2_code);
		if ($this->isColumnModified(GeoNamePeer::ADMIN3_CODE)) $criteria->add(GeoNamePeer::ADMIN3_CODE, $this->admin3_code);
		if ($this->isColumnModified(GeoNamePeer::ADMIN4_CODE)) $criteria->add(GeoNamePeer::ADMIN4_CODE, $this->admin4_code);
		if ($this->isColumnModified(GeoNamePeer::POPULATION)) $criteria->add(GeoNamePeer::POPULATION, $this->population);
		if ($this->isColumnModified(GeoNamePeer::ELEVATION)) $criteria->add(GeoNamePeer::ELEVATION, $this->elevation);
		if ($this->isColumnModified(GeoNamePeer::GTOPO30)) $criteria->add(GeoNamePeer::GTOPO30, $this->gtopo30);
		if ($this->isColumnModified(GeoNamePeer::TIMEZONE)) $criteria->add(GeoNamePeer::TIMEZONE, $this->timezone);
		if ($this->isColumnModified(GeoNamePeer::UPDATED_AT)) $criteria->add(GeoNamePeer::UPDATED_AT, $this->updated_at);

		return $criteria;
	}

	
	public function buildPkeyCriteria()
	{
		$criteria = new Criteria(GeoNamePeer::DATABASE_NAME);

		$criteria->add(GeoNamePeer::GEO_NAME_ID, $this->geo_name_id);

		return $criteria;
	}

	
	public function getPrimaryKey()
	{
		return $this->getGeoNameId();
	}

	
	public function setPrimaryKey($key)
	{
		$this->setGeoNameId($key);
	}

	
	public function copyInto($copyObj, $deepCopy = false)
	{

		$copyObj->setStatusId($this->status_id);

		$copyObj->setPriority($this->priority);

		$copyObj->setName($this->name);

		$copyObj->setAsciiName($this->ascii_name);

		$copyObj->setAlternateNames($this->alternate_names);

		$copyObj->setLatitude($this->latitude);

		$copyObj->setLongitude($this->longitude);

		$copyObj->setFeatureClass($this->feature_class);

		$copyObj->setFeatureCode($this->feature_code);

		$copyObj->setCountryCode($this->country_code);

		$copyObj->setCc2($this->cc2);

		$copyObj->setAdmin1Code($this->admin1_code);

		$copyObj->setAdmin2Code($this->admin2_code);

		$copyObj->setAdmin3Code($this->admin3_code);

		$copyObj->setAdmin4Code($this->admin4_code);

		$copyObj->setPopulation($this->population);

		$copyObj->setElevation($this->elevation);

		$copyObj->setGtopo30($this->gtopo30);

		$copyObj->setTimezone($this->timezone);

		$copyObj->setUpdatedAt($this->updated_at);


		$copyObj->setNew(true);

		$copyObj->setGeoNameId(NULL); 
	}

	
	public function copy($deepCopy = false)
	{
				$clazz = get_class($this);
		$copyObj = new $clazz();
		$this->copyInto($copyObj, $deepCopy);
		return $copyObj;
	}

	
	public function getPeer()
	{
		if (self::$peer === null) {
			self::$peer = new GeoNamePeer();
		}
		return self::$peer;
	}

} 